import axios from '@/api/fetch';
import SERVER from '@/api/server';

// GET 查询列表 /vsSalesReportChange/searchRetailReportChange
export const queryList = (params) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChange`, {
  params
})

// 实销变更申请	查询订单数据	retail	 /vsRetailOrder/searchRetailOrder get
export const queryRetailOrder = (params) => axios.get(`${SERVER.RETAIL}/vsSalesReport/searchRetailReportDataNew`, {
  params
});

// GET 删除 /vsSalesReportChange/delRetailReportChangeById
export const delDataById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/delRetailReportChangeById?id=${Id}`)

// GET 查询详情  /vsSalesReportChange/searchRetailReportChangeById
export const getInfoById = (Id) => axios.get(`${SERVER.RETAIL}/vsSalesReportChange/searchRetailReportChangeById?id=${Id}`)

// POST 提交 /vsSalesReportChange/commitReportChange
export const commitReportChange = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReportChange/commitReportChange`, params)

// POST 保存 /vsSalesReportChange/saveReportChange
export const saveReportChange = (params) => axios.post(`${SERVER.RETAIL}/vsSalesReportChange/saveReportChange`, params)

// 零售订单维护	查询销售顾问	sysmanage	 /employeeNew/getEmployees	get
export const getEmployees = (params) => axios.get(`${SERVER.SYSMANAGE}/employeeNew/getEmployees`, {
  params
});
